package com.innovatio.validator.test;

import com.innovatio.validator.handlers.CustomValidationHandler;
import com.innovatio.validator.exceptions.ValidatorException;

/**
 * This code is property of Innovatio Software Solutions, Inc.
 * User: Edxe
 * Date: Jul 6, 2009
 * Time: 6:12:35 AM
 */
public class CustomValidatorImpl implements CustomValidationHandler{

    @Override
    public boolean validate(String field, String value) throws ValidatorException {
        int v = Integer.parseInt(value);
        return v+2 == 5;
    }
}
